home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: Question on argv
- Date: 02 Feb 1996 18:36:00 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Feb2113600@qcd.lanl.gov>
- References: <4eoq3c$45j@usenet.ucs.indiana.edu> <4epkmo$231@transfer.stratus.com>
- <TANMOY.96Feb1085901@qcd.lanl.gov> <9602012245.AA05565@dxmint.cern.ch>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: Dan Pop's message of Thu, 1 Feb 1996 23:45:54 +0100
-
- In article <9602012245.AA05565@dxmint.cern.ch> Dan Pop
- <danpop@mail.cern.ch> writes:
- <snip>
- tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) writes:
-
- >In article <4epkmo$231@transfer.stratus.com> "David L. McReynolds"
- ><David_McReynolds@vos.stratus.com> writes:
- ><snip>
- > argv is an array of pointers to arrays of chars. Therefore
- > you will have to do something like
- >
- >This is loose wording (but, then, even the standard makes exactly the
- >same mistake in at least one place). argv is an array of pointers to
- >the first elements of arrays of chars. (Pointers to arrays are
- >completely different beasts :-)
-
- No way. argv isn't (and _cannot_ be) an array at all. It is a char **
- pointing to the first char * from an array of char pointers.
-
- If anybody has doubts about this, sizeof argv should clear them up.
-
- Touche!
-
- argv is a modifiable pointer to the first of a contiguous sequence of
- possibly unmodifiable pointers which are either NULL (the last one) or
- point to the first elements of a contiguous sequence of modifiable
- chars, the last of which is a '\0'.
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-